test-all: Add switch -n to create a synthesized reference file.
authoroliskoli <oliskoli>
Thu, 17 Apr 2008 22:16:36 +0000 (22:16 +0000)
committeroliskoli <oliskoli>
Thu, 17 Apr 2008 22:16:36 +0000 (22:16 +0000)
test-all

index 891b0b62edda303ef105cc94e49adfd414a33005..b4b876310e4387e2a478c8a017887651afb93d9f 100755 (executable)
--- a/test-all
+++ b/test-all
@@ -9,6 +9,7 @@ CAPS=""
 TEMPDIR=${GBTEMP:-/tmp}/gb-test-all
 CATALOG=/tmp/gb-test-all.done
 LOGFILE=/tmp/gb-test-all.log
+RNDFILE=/tmp/gb-random.gpx
 
 # options
 vg=0
@@ -176,6 +177,10 @@ while [ $# -gt 0 ]; do
        -c|--clean)
            trap "rm -fr $TEMPDIR; exit 1" 0 1 2 3 15
            ;;
+       -n|--random)
+           ${PNAME} -i random -w -f - -i random,points=48 -r -f - -i random,points=120 -t -f - -o gpx,gpxver=1.1 -F $RNDFILE
+           REFGPX=/tmp/gb-random.gpx
+           ;;
        -r|--reference)
            shift
            REFGPX=$1